home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / DJINC106.ARJ / GETPAGES.H < prev    next >
C/C++ Source or Header  |  1992-03-09  |  901b  |  39 lines

  1. /* This is file getpages.h */
  2. /* This file may have been modified by DJ Delorie (Jan 1991).  If so,
  3. ** these modifications are Coyright (C) 1991 DJ Delorie, 24 Kirsten Ave,
  4. ** Rochester NH, 03867-2954, USA.
  5. */
  6.  
  7. /* This file may have been modified by DJ Delorie (Jan 1991).  If so,
  8. ** these modifications are Coyright (C) 1991 DJ Delorie, 24 Kirsten Ave,
  9. ** Rochester NH, 03867-2954, USA.
  10. */
  11.  
  12. #if defined(BSD) || defined(DGUX)
  13. #ifndef BSD4_1
  14. #define HAVE_GETPAGESIZE
  15. #endif
  16. #endif
  17.  
  18. #ifndef HAVE_GETPAGESIZE
  19.  
  20. #include <sys/param.h>
  21.  
  22. #ifdef EXEC_PAGESIZE
  23. #define getpagesize() EXEC_PAGESIZE
  24. #else
  25. #ifdef NBPG
  26. #define getpagesize() NBPG * CLSIZE
  27. #ifndef CLSIZE
  28. #define CLSIZE 1
  29. #endif /* no CLSIZE */
  30. #else /* no NBPG */
  31. #ifdef NBPC
  32. #define getpagesize() NBPC
  33. #endif /* NBPC */
  34. #endif /* no NBPG */
  35. #endif /* no EXEC_PAGESIZE */
  36.  
  37. #endif /* not HAVE_GETPAGESIZE */
  38.  
  39.